<div class="taikhoans view">
<h2><?php  __('Taikhoan');?></h2>
	<dl><?php $i = 0; $class = ' class="altrow"';?>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Id'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $taikhoan['Taikhoan']['id']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Username'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $taikhoan['Taikhoan']['username']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Password'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $taikhoan['Taikhoan']['password']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Vaitro'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $this->Html->link($taikhoan['Vaitro']['id'], array('controller' => 'vaitros', 'action' => 'view', $taikhoan['Vaitro']['id'])); ?>
			&nbsp;
		</dd>
	</dl>
</div>
<div class="actions">
	<h3><?php __('Actions'); ?></h3>
	<ul>
		<li><?php echo $this->Html->link(__('Edit Taikhoan', true), array('action' => 'edit', $taikhoan['Taikhoan']['id'])); ?> </li>
		<li><?php echo $this->Html->link(__('Delete Taikhoan', true), array('action' => 'delete', $taikhoan['Taikhoan']['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $taikhoan['Taikhoan']['id'])); ?> </li>
		<li><?php echo $this->Html->link(__('List Taikhoans', true), array('action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Taikhoan', true), array('action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Vaitros', true), array('controller' => 'vaitros', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Vaitro', true), array('controller' => 'vaitros', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Canbos', true), array('controller' => 'canbos', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Canbo', true), array('controller' => 'canbos', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Hocviens', true), array('controller' => 'hocviens', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Hocvien', true), array('controller' => 'hocviens', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Tkquyens', true), array('controller' => 'tkquyens', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Tkquyen', true), array('controller' => 'tkquyens', 'action' => 'add')); ?> </li>
	</ul>
</div>
<div class="related">
	<h3><?php __('Related Canbos');?></h3>
	<?php if (!empty($taikhoan['Canbo'])):?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php __('Id'); ?></th>
		<th><?php __('Cb Maso'); ?></th>
		<th><?php __('Bomon Id'); ?></th>
		<th><?php __('Hocvi Id'); ?></th>
		<th><?php __('Chucdanh Id'); ?></th>
		<th><?php __('Taikhoan Id'); ?></th>
		<th><?php __('Cb Hoten'); ?></th>
		<th><?php __('Cb Ngaysinh'); ?></th>
		<th><?php __('Cb Noisinh'); ?></th>
		<th><?php __('Cb Diachi'); ?></th>
		<th><?php __('Cb Gioitinh'); ?></th>
		<th><?php __('Cb Dienthoai'); ?></th>
		<th><?php __('Cb Hsluong'); ?></th>
		<th><?php __('Cb Email'); ?></th>
		<th><?php __('Ghichu'); ?></th>
		<th class="actions"><?php __('Actions');?></th>
	</tr>
	<?php
		$i = 0;
		foreach ($taikhoan['Canbo'] as $canbo):
			$class = null;
			if ($i++ % 2 == 0) {
				$class = ' class="altrow"';
			}
		?>
		<tr<?php echo $class;?>>
			<td><?php echo $canbo['id'];?></td>
			<td><?php echo $canbo['cb_maso'];?></td>
			<td><?php echo $canbo['bomon_id'];?></td>
			<td><?php echo $canbo['hocvi_id'];?></td>
			<td><?php echo $canbo['chucdanh_id'];?></td>
			<td><?php echo $canbo['taikhoan_id'];?></td>
			<td><?php echo $canbo['cb_hoten'];?></td>
			<td><?php echo $canbo['cb_ngaysinh'];?></td>
			<td><?php echo $canbo['cb_noisinh'];?></td>
			<td><?php echo $canbo['cb_diachi'];?></td>
			<td><?php echo $canbo['cb_gioitinh'];?></td>
			<td><?php echo $canbo['cb_dienthoai'];?></td>
			<td><?php echo $canbo['cb_hsluong'];?></td>
			<td><?php echo $canbo['cb_email'];?></td>
			<td><?php echo $canbo['ghichu'];?></td>
			<td class="actions">
				<?php echo $this->Html->link(__('View', true), array('controller' => 'canbos', 'action' => 'view', $canbo['id'])); ?>
				<?php echo $this->Html->link(__('Edit', true), array('controller' => 'canbos', 'action' => 'edit', $canbo['id'])); ?>
				<?php echo $this->Html->link(__('Delete', true), array('controller' => 'canbos', 'action' => 'delete', $canbo['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $canbo['id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $this->Html->link(__('New Canbo', true), array('controller' => 'canbos', 'action' => 'add'));?> </li>
		</ul>
	</div>
</div>
<div class="related">
	<h3><?php __('Related Hocviens');?></h3>
	<?php if (!empty($taikhoan['Hocvien'])):?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php __('Id'); ?></th>
		<th><?php __('Hv Maso'); ?></th>
		<th><?php __('Lopcn Id'); ?></th>
		<th><?php __('Taikhoan Id'); ?></th>
		<th><?php __('Hv Hoten'); ?></th>
		<th><?php __('Hv Noisinh'); ?></th>
		<th><?php __('Hv Ngaysinh'); ?></th>
		<th><?php __('Hv Diachi'); ?></th>
		<th><?php __('Hv Noicongtac'); ?></th>
		<th><?php __('Hv Dienthoai'); ?></th>
		<th><?php __('Hv Email'); ?></th>
		<th><?php __('Hv Gioitinh'); ?></th>
		<th><?php __('Hv Ngoaingu'); ?></th>
		<th><?php __('Hv Ghichu'); ?></th>
		<th class="actions"><?php __('Actions');?></th>
	</tr>
	<?php
		$i = 0;
		foreach ($taikhoan['Hocvien'] as $hocvien):
			$class = null;
			if ($i++ % 2 == 0) {
				$class = ' class="altrow"';
			}
		?>
		<tr<?php echo $class;?>>
			<td><?php echo $hocvien['id'];?></td>
			<td><?php echo $hocvien['hv_maso'];?></td>
			<td><?php echo $hocvien['lopcn_id'];?></td>
			<td><?php echo $hocvien['taikhoan_id'];?></td>
			<td><?php echo $hocvien['hv_hoten'];?></td>
			<td><?php echo $hocvien['hv_noisinh'];?></td>
			<td><?php echo $hocvien['hv_ngaysinh'];?></td>
			<td><?php echo $hocvien['hv_diachi'];?></td>
			<td><?php echo $hocvien['hv_noicongtac'];?></td>
			<td><?php echo $hocvien['hv_dienthoai'];?></td>
			<td><?php echo $hocvien['hv_email'];?></td>
			<td><?php echo $hocvien['hv_gioitinh'];?></td>
			<td><?php echo $hocvien['hv_ngoaingu'];?></td>
			<td><?php echo $hocvien['hv_ghichu'];?></td>
			<td class="actions">
				<?php echo $this->Html->link(__('View', true), array('controller' => 'hocviens', 'action' => 'view', $hocvien['id'])); ?>
				<?php echo $this->Html->link(__('Edit', true), array('controller' => 'hocviens', 'action' => 'edit', $hocvien['id'])); ?>
				<?php echo $this->Html->link(__('Delete', true), array('controller' => 'hocviens', 'action' => 'delete', $hocvien['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $hocvien['id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $this->Html->link(__('New Hocvien', true), array('controller' => 'hocviens', 'action' => 'add'));?> </li>
		</ul>
	</div>
</div>
<div class="related">
	<h3><?php __('Related Tkquyens');?></h3>
	<?php if (!empty($taikhoan['Tkquyen'])):?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php __('Id'); ?></th>
		<th><?php __('Quyen Id'); ?></th>
		<th><?php __('Taikhoan Id'); ?></th>
		<th class="actions"><?php __('Actions');?></th>
	</tr>
	<?php
		$i = 0;
		foreach ($taikhoan['Tkquyen'] as $tkquyen):
			$class = null;
			if ($i++ % 2 == 0) {
				$class = ' class="altrow"';
			}
		?>
		<tr<?php echo $class;?>>
			<td><?php echo $tkquyen['id'];?></td>
			<td><?php echo $tkquyen['quyen_id'];?></td>
			<td><?php echo $tkquyen['taikhoan_id'];?></td>
			<td class="actions">
				<?php echo $this->Html->link(__('View', true), array('controller' => 'tkquyens', 'action' => 'view', $tkquyen['id'])); ?>
				<?php echo $this->Html->link(__('Edit', true), array('controller' => 'tkquyens', 'action' => 'edit', $tkquyen['id'])); ?>
				<?php echo $this->Html->link(__('Delete', true), array('controller' => 'tkquyens', 'action' => 'delete', $tkquyen['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $tkquyen['id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $this->Html->link(__('New Tkquyen', true), array('controller' => 'tkquyens', 'action' => 'add'));?> </li>
		</ul>
	</div>
</div>
